package com.company.cloud.club.modules.dto.product;

import com.company.cloud.club.modules.core.util.ValidateUtil;
import com.company.cloud.club.modules.vo.RecommendCardVo;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class ProductArtistBo implements Serializable {

    private String avatar;

    private String nickname;

    private String label;

    private Integer productNum;

    private List<RecommendCardVo> last3DaysList = new ArrayList<>();

    private List<RecommendCardVo> daysAgoList = new ArrayList<>();

    public void addLast3Days(RecommendCardVo vo) {
        if (ValidateUtil.isValid(vo)) {
            this.last3DaysList.add(vo);
        }
    }

    public void addDaysAgoList(RecommendCardVo vo) {
        if (ValidateUtil.isValid(vo)) {
            this.daysAgoList.add(vo);
        }
    }

}
